<template>
	<view class="page">
		<view class="info_box">
			<view class="img"><image :src="detailForm.sponsor_logo"></image></view>
			<view class="info_cont">
				<view class="title">{{ detailForm.sponsor }}</view>
				<view class="link">联系人：{{ detailForm.contacts }}</view>
				<view class="phone_box" @click="goPhone" v-if="detailForm.phone ? true : false">
					<view class="sign iconfont iconfont-e68e"></view>
					<viw class="phone">{{ detailForm.phone }}</viw>
				</view>
			</view>
		</view>
		<!-- <view class="address">
			<view class="ad_sign iconfont iconfot-e657"></view>
			<view class="ad_cont">{{ detailForm.address }}</view>
		</view> -->
		<view class="desc">{{ detailForm.synopsis }}</view>
	</view>
</template>

<script>
import { uniCall } from '@/utils/uniPromise.js';
export default {
	components: {},
	data() {
		return {
			detailForm: {}
		};
	},
	onLoad() {
		let pages = getCurrentPages();
		let current = pages[pages.length - 2].$vm; // 上个页面
		this.detailForm = {
			...current.$refs.page_view0.detailForm
		};
	},

	methods: {
		goPhone() {
			uniCall(this.detailForm.phone, '主办方未设置联系电话');
		}
	}
};
</script>

<style scoped lang="scss">
.page {
	padding: 20rpx 24rpx;
}
.info_box {
	display: flex;
	.img {
		width: 130rpx;
		height: 130rpx;
		margin-right: 26rpx;
	}
	.info_cont {
		flex: 1;
		overflow: hidden;
		.title {
			font-weight: bold;
			font-size: 32rpx;
		}
		.link {
			color: #999;
			font-size: 26rpx;
			margin-top: 6rpx;
		}
		.phone_box {
			display: flex;
			align-items: center;
			margin-top: 8rpx;
			.phone {
				margin-left: 4rpx;
			}
		}
	}
}
.desc {
	text-indent: 2em;
	margin-top: 18rpx;
	border-top: 2rpx solid #ddd;
	padding-top: 14rpx;
}
</style>
